#include "fruit.h"
#include<QIcon>
#include<QPainter>
#include<QPixmap>
fruit::fruit(QWidget *parent)
    : QWidget(parent)
{
    initfruit();

}

fruit::~fruit()
{

}

void fruit::initfruit()
{
   this->setGeometry(QRect(800,50,552,954));
    setWindowTitle("接水果");
    setWindowIcon(QIcon(":/tu/WPS图片-修改尺寸"));

}

void fruit::paintEvent(QPaintEvent *)
{
    QPainter p;
    p.begin(this);

    p.drawPixmap(0,0,map2.map1);
    p.end();
}
